<div class="payment_top">
    <a href="javascript:history.go(-1)"><img class="backImg" src="images/leftarrow.png"></a>
    <span class="payment_title">收银二维码</span>
    <div class="backBtn_right" ng-hide="vm.isEdit||!vm.inuptFile" ng-click="vm.editChange()">编辑</div>
    <div class="backBtn_right" ng-show="vm.isEdit&&vm.inuptFile" ng-click="vm.sureEdit()">确定</div>
</div>
<div class="body-back">
    <div ng-repeat="shopPay in vm.shopPayList">
        <div class="lg-h"></div>
        <div class="setpay">
            <div id="qrcode{{shopPay.createtime}}" style="width: 200px;margin: auto;" ng-init="vm.makeCode(shopPay)">
            </div>
            <!--<img ng-src="{{vm.img}}" alt="">-->
            <div class="setpay-edit-btn" ng-show="vm.isEdit">
                <div class="setpay-edit-btn-content">
                    <button ng-click="vm.removeShopPay(shopPay)">删除</button>
                    <button>修改
                        <input style="border: none" name="photo" type="file" class="image_url"
                               accept="image/*;" ngf-select ng-model="vm.imagesFile" ng-change="vm.editShopPay(vm.imagesFile,shopPay)">
                    </button>
                </div>
            </div>
        </div>
        <div class="setpay_text" ng-show="!shopPay.edit&&!vm.isEdit">{{shopPay.info}}</div>
        <div class="setpay_text" ng-show="shopPay.edit||vm.isEdit">
            <input ng-model="shopPay.info" ng-change="vm.shopPayInfoChange(shopPay)" placeholder="收款码类型"/>
        </div>

    </div>
    <div ng-hide="vm.isEdit"style="padding: 1rem 0;">
        <div class="setpay-div" ng-show="vm.inuptFile&&vm.shopPayList.length<4">
            <button class="setpay-btn setpay-btn-1">
                <input style="border: none" name="photo" type="file" class="image_url"
                       accept="image/*;" ngf-select ng-model="vm.imagesFile" ng-change="vm.uploadImages(vm.imagesFile)">
                上传收银二维码</button>
        </div>
        <div class="setpay-div" ng-hide="vm.inuptFile">
            <button class="setpay-btn setpay-btn-2" ng-click="vm.cancelShopPay()">取消</button>
            <button class="setpay-btn setpay-btn-2" ng-click="vm.saveShopPay()">保存</button>
        </div>
    </div>
    <!--<button class="setpay-btn ">修改</button>-->
</div>
<div class="image_loader" ng-show="vm.progressPercentage>=0 && vm.progressPercentage<100" >
    <div class="loading_bar">
        <div class="progress-bars">
            <div class="progress-stripes"></div>
            <div class="percentage">{{vm.progressPercentage}}%</div>
        </div>
    </div>
</div>